<script lang="ts" setup>
import { withDefaults } from 'vue'

withDefaults(
  defineProps<{
    // 图片链接
    imageSrc?: string
    // 提示文字
    text?: string
  }>(),
  {
    imageSrc: 'https://m.360buyimg.com/i/jfs/t1/290248/20/15647/4057/686a1e93F63a1811a/7909e2c8c9ab3894.jpg',
    text: '当前为空',
  },
)
</script>

<template>
  <view class="flex flex-col items-center bg-white pb-[24rpx]">
    <image
      :src="imageSrc"
      class="h-[360rpx] w-[360rpx]"
    />
    <text class="text-gray-500">
      {{ text }}
    </text>
  </view>
</template>
